-- GENERATED SPELL FOR [Bash'ir Surveyor] --


function spell0_23153(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(40881,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23153', 625, 1)
end

function spell1_23153(pUnit, Event) --@Stasis Field,n/a--
pUnit:FullCastSpellOnTarget(40835,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23153', 5278, 1)
end

function Sorts_23153(pUnit, Event)
local choix_sorts_23153 = math.random(0, 1)
if choix_sorts_23153 == 0 then
pUnit:RegisterEvent('spell0_23153', 1, 1)
end
if choix_sorts_23153 == 1 then
pUnit:RegisterEvent('spell1_23153', 1, 1)
end
end

function mob23153_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23153', math.random(1500, 3000), 1)
end

function mob23153_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23153_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23153_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23153, 1, 'mob23153_Action')
RegisterUnitEvent(23153, 2, 'mob23153_Leave')
RegisterUnitEvent(23153, 3, 'mob23153_Kill')
RegisterUnitEvent(23153, 4, 'mob23153_Die')
